<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
	<input type="hidden" name="row[id]" value="{$row.id}">
	<div class="panel panel-default panel-intro">
		<div class="panel-body">
			<div class="form-group">
				<label for="c-company_id" class="control-label col-xs-12 col-sm-2">{:__('公司名称')}:</label>
				<div class="col-xs-12 col-sm-8">
					<input id="c-company_id" data-rule="required" class="form-control selectpage" name="row[company_id]" type="text" data-source='company/index' data-field='companyname' value="{$row.company_id}" placeholder="{$row.companyname|htmlentities}">
				</div>
			</div>
			<div class="form-group">
				<label for="c-cluecontent" class="control-label col-xs-12 col-sm-2">{:__('线索情况')}:</label>
				<div class="col-xs-12 col-sm-8">
					<textarea id="c-cluecontent" data-rule="required" class="form-control" name="row[cluecontent]">{$row.cluecontent|htmlentities}</textarea>
				</div>
			</div>
			<div class="form-group">
				<label for="c-telephone" class="control-label col-xs-12 col-sm-2">{:__('联系电话')}:</label>
				<div class="col-xs-12 col-sm-8">
					<input id="c-telephone" data-rule="required" class="form-control" name="row[telephone]" type="text" value="{$row.telephone|htmlentities}">
				</div>
			</div>
			<div class="form-group">
				<label for="c-developtime" class="control-label col-xs-12 col-sm-2">{:__('开发时间')}:</label>
				<div class="col-xs-12 col-sm-8">
					<input id="c-developtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[developtime]" type="text" value="{$row.developtime|datetime}">
				</div>
			</div>
			<div class="form-group">
				<label for="c-followup" class="control-label col-xs-12 col-sm-2">{:__('跟进情况')}:</label>
				<div class="col-xs-12 col-sm-8">
					<input id="c-followup" data-rule="" class="form-control" name="row[followup]" type="text" value="{$row.followup|htmlentities}">
				</div>
			</div>
			<div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('是否成交')}:</label>
                <div class="col-xs-12 col-sm-8">
                    {:build_radios('row[isdeal]', ['1'=>__('是'), '0'=>__('否')], $row['isdeal'])}
                </div>
            </div>
			<div class="form-group">
				<label for="c-amount" class="control-label col-xs-12 col-sm-2">{:__('成交金额')}:</label>
				<div class="col-xs-12 col-sm-8">
					<input id="c-amount" data-rule="" class="form-control" name="row[amount]" type="number" step="0.01" value="{$row.amount}">
				</div>
			</div>
		</div>
	</div>		
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('保存')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('取消')}</button>
        </div>
    </div>
</form>
